package game.shader;

import hx.display.BitmapData;
import hx.shader.MultiTextureShader;

/**
 * 头像遮罩实现
 */
class HeadShader extends MultiTextureShader {
	public function new(headBitmapData:BitmapData) {
		super(null, "
        color *= texture2D(uSampler1,vec2(0.1, 0) + openfl_TextureCoordv * vec2(0.89*0.6,0.6));
        ");
		if (headBitmapData != null)
			this.uSampler1.input = headBitmapData.data.getTexture();
	}
}
